
import controller.LoginController;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import network.Network;
import view.LoginForm;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Jasper
 */
public class StartUp {
    private static InetAddress host;
    
    public static void main(String[] args) 
    {
        LoginController login = new LoginController();
        
        try{
            //opstarten poort + gaan naar login
            host = InetAddress.getLocalHost();
        }catch(IOException e){
            System.out.println("Kan de poort " + Network.PORT + " niet openen");
            System.out.println("Systeem sluit af...");
            System.exit(1);
        }
        //ga naar loginform en geef de logincontroller mee als parameter 
        //TODO run() of niet?
        new LoginForm(login).isVisible();
    }
}
